trait {{ prototype.name }}
{
{% for constant in prototype.constants %}
{{ generator.render(constant, variant)|indent(1)|raw }}
{% if not loop.last %}

{% endif %}
{% endfor %}
{% for property in prototype.properties %}
{{ generator.render(property, variant)|indent(1)|raw }}
{% if not loop.last %}

{% endif %}
{% endfor %}
{% for method in prototype.methods %}
{% if loop.first and prototype.properties|length %}

{% endif %}
{{ generator.render(method, variant)|indent(1)|raw }}
{{ generator.render(method.body)|indent(1)|raw }}
{% if not loop.last %}

{% endif %}
{% endfor %}
}
